/*
 * utilcase.cpp
 *
 *  Created on: 2012-12-28
 *      Author: yangentao@gmail.com
 */
#include "test.h"

#include "../src/yet/baseutil.h"

using namespace yet;

TEST(trim, a){

	EXPECT_TRUE(trim("") == "");
	EXPECT_TRUE(trim(" ") == "");
	EXPECT_TRUE(trim("  ") == "");
	EXPECT_TRUE(trim(" \n") == "");
	EXPECT_TRUE(trim("abc") == "abc");
	EXPECT_TRUE(trim(" abc") == "abc");
	EXPECT_TRUE(trim("abc ") == "abc");
	EXPECT_TRUE(trim(" abc ") == "abc");
	EXPECT_TRUE(trim("a bc ") == "a bc");
	EXPECT_TRUE(trim(" a bc ") == "a bc");
}




